/**
 * Created by Administrator on 2016/4/11.
 */



    $("#get").click(function(){
        var pwd1=$("#pwd1").val();
        var pwd2=$("#pwd2").val();
        if(pwd1.length<1){
            alert("���벻��Ϊ��")
            return false;
        }else if(pwd2.length<1){
            alert("���벻��Ϊ��")
            return false;
        }else if( pwd1!=pwd2){
            alert("�����������벻һ��")
            return false;
        }else{
            $.ajax({
                url: "hxclub/member/pwd/modify.do",
                async: false,
                type: "post",
                dataType: "json",
                data: {"id": "" + id + "", "pwd": "" + pwd2 + ""},
                success: function (data) {

                    if (data.success == false) {
                        alert("�޸�ʧ��")
                    } else {
                        alert("�޸�����ɹ�")
                        window.location.href = "../index.html";
                    }
                }
            });
        }

    }).mousedown(function(){
        $("#get").addClass("l_anniu")
    }).mouseout(function(){
        $("#get").removeClass("l_anniu")
    });




